import { Role } from '@/util/enum'

export const adminRouter = [
  {
    path: '/admin',
    name: 'admin',
    component: () => import('@/views/admin/AdminIndex.vue'),
    meta: {
      requireAuth: true,
      roles: [Role.Admin],
      title: '管理员',
    },
  },
  {
    path: '/admin/user',
    name: 'adminUser',
    component: () => import('@/views/admin/MajorList.vue'),
    meta: {
      requireAuth: true,
      roles: [Role.Admin],
      title: '专业列表',
    },
  },
]
